import random
#c=20
#c_1=c/10
#c_2=c_1+c_1%5
#c_3=c_2+c_2%3+c/10
#c_4=c/2
#print("这是一个彩票模拟，有红一至六，蓝一球号码，你需要猜这一个数，猜对了有奖。")
#print("红一二球号码：1-A。红三四球号码：1-B。红五六球号码：1-C。篮球号码：1-D。")

def num2suzi(i):
    suzis=["零","一","二","三","四","五","六","七","八","九","十","百","千","万"]
    return suzis[i]

arr_a=[]
for i in range(7):
    arr_a.append(random.randint(1,100))

arr_b=[]
for i in range(7):
    color="红"
    v=i+1
    if i==6: 
        color="蓝"
        v=i+1-6
    arr_b.append(int(input(f"{color}{num2suzi(v)}球号码:")))

same_num=0
rank=7
for i in range(7):
   if arr_a[i] == arr_b[i]:
       same_num+=1
rank=7-same_num

print(f"中奖号码:{arr_a}")
print(f"你的号码:{arr_b}")
if rank+1>=8:
    print(f"没有中等奖")
else:
    print(f"{num2suzi(rank+1)}等奖")
print(f"中了{num2suzi(same_num)}个")
